<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>主页</title>
    <link rel="stylesheet" type="text/css" href="css/index.css"/>
</head>

<body>
<div class="index-nav">
    <div class="index-nav-frame clearfix">
        <div class="nav-line"></div>

        <div class="nav-small" tabindex="-1">
            <div class="nav-small-focus" tabindex="-1"></div>
            <img src="img/icon.png"/>
        </div>

        <div class="index-nav-frame-line" tabindex="-1">
            <c:if test="${loginUser.userType == '辅导员' || loginUser.userType == '普通用户'}">
                <a style="color: #3c87c8;font-size: large" href="CourseServlet">课程管理</a>
            </c:if>
        </div>

        <div class="index-nav-frame-line" tabindex="-1">
            <c:if test="${loginUser.userType == '管理员'|| loginUser.userType == '辅导员' || loginUser.userType == '普通用户'}">
                <a style="color: #3c87c8;font-size: large" title="没有权限！！！"
                   href="UserServlet">用户管理</a>
            </c:if>
        </div>

        <div class="index-nav-frame-line" tabindex="-1">
            <c:if test="${loginUser.userType == '辅导员'}">
                <a style="color: #3c87c8;font-size: large" href="StudentServlet">学生管理</a>
            </c:if>
        </div>

        <div class="index-nav-frame-line" tabindex="-1">
            <c:if test="${loginUser.userType == '辅导员'}">
                <a style="color: #3c87c8;font-size: large" href="ClassServlet">班级管理</a>
            </c:if>
        </div>

        <div class="index-nav-frame-line" tabindex="-1">
            <c:if test="${loginUser.userType == '管理员'}">
                <a style="color: #3c87c8;font-size: large" href="InstructorServlet">铺导员管理</a>
            </c:if>
        </div>

        <div class="index-nav-frame-line" tabindex="-1">
            <c:if test="${loginUser.userType == '管理员'}">
                <a style="color: #3c87c8;font-size: large"
                   href="DepartmentServlet">学院管理</a>
            </c:if>
        </div>

        <div class="index-nav-frame-line" tabindex="-1">
            <c:if test="${loginUser.userType == '辅导员' || loginUser.userType == '普通用户'}">
                <a style="color: #3c87c8;font-size: large" href="LeaveServlet">请假管理</a>
            </c:if>
        </div>

<%--        <div class="index-nav-frame-line" tabindex="-1">--%>
<%--            <c:if test="${loginUser.userType == '管理员'}">--%>
<%--                <a style="color: #3c87c8;font-size: large" href="NoticeServlet">公告管理</a>--%>
<%--            </c:if>--%>
<%--        </div>--%>

        <div class="index-nav-frame-line" style="float: right;" tabindex="-1">
            <a href="AuthServlet?action=logout" style="color: #3c87c8;font-size: large">退出</a>
        </div>

        <div class="index-nav-frame-line" style="float: right;color: #000000;width: 200px">
            欢迎：<a>${loginUser.username}</a>
        </div>

    </div>
</div>
</div>
</div>
</body>
</html>
